package com.bcx.crm.java.proxy.staticProxy;

/**
 * Created by ys on 2018/1/18.
 */

/**
 * 测试类
 */
public class UserDaoTest {
    public static void main(String [] strings){
        //目标对象
        IUserDao userDao = new UserDaoImpl();
        UserDaoProxy userDaoProxy = new UserDaoProxy(userDao);
        userDaoProxy.save();//执行的是代理方法
    }
}
